﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL
{
    public class Accounts_Users
    {
        public Accounts_Users()
        { }
        private readonly Aliyeye.Car.Net.Dal.Accounts_Users dal = new Aliyeye.Car.Net.Dal.Accounts_Users();
        public int Add(Model.Accounts_Users model)
        {
            return dal.Add(model);
        }
        public bool Update(Model.Accounts_Users model)
        {
            return dal.Update(model);
        }
        public int CheckLogin(string UserName, string Password)
        {
            return dal.CheckLogin(UserName, Password);
        }
        public bool UpdatePass(Model.Accounts_Users model)
        {
           return dal.UpdatePass(model);
        }
        public bool Delete(int Id)
        {
           return dal.Delete(Id);
        }
        public Model.Accounts_Users GetModel(int UserID)
        {
            return dal.GetModel(UserID);
        }
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        public DataSet GetDriveList(string strWhere)
        {
            return dal.GetDriveList(strWhere);
        }

        public DataSet GetDriveLists(string strWhere)
        {
            return dal.GetDriveLists(strWhere);
        }

        public Model.Accounts_Users GetDriveModel(int UserID)
        {
            return dal.GetDriveModel(UserID);
        }  


        public bool IsExistUserName(string Username)
        {
            return dal.IsExistUserName(Username);
        }  
        
    }
}
